package com.nebula.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.nebula.pojo.Friends;
import com.nebula.pojo.FriendsKey;

public interface FriendsMapper {
    int deleteByPrimaryKey(FriendsKey key);

    int insert(Friends record);

    int insertSelective(Friends record);

    Friends selectByPrimaryKey(FriendsKey key);

    int updateByPrimaryKeySelective(Friends record);

    int updateByPrimaryKey(Friends record);
    
    int selectFriendByUsernameAndFriendname(@Param("username") String username,@Param("friendname") String friendname);
    
    List<Friends> selectFriendsList(String username);
    
    int checkFriend(@Param("username") String username,@Param("friendname") String friendname);
    
    int selectFriendsCount(String username);
}